#include <stdio.h>
#include <stdlib.h>

typedef struct Student
{
    char name[20];
    int no;
    int year;
    int month;
    int math;
    int English;
    int C;
    double average;
}Student;

int main()
{
    int i,num;
    struct Student student[100];
    scanf("%d",&num);
    for(i=0;i<num;++i)
    {
        scanf("%d",&student[i].no);
        scanf("%s",student[i].name);
        scanf("%d",&student[i].year);
        scanf("%d",&student[i].month);
        scanf("%d",&student[i].math);
        scanf("%d",&student[i].English);
        scanf("%d",&student[i].C);
        student[i].average=0;
    }
    for(i=0;i<num;++i)
    {
        student[i].average=(student[i].math+student[i].English+student[i].C)/3.0;
        printf("%d %s %d/%d %d %d %d %.0f\n",student[i].no,student[i].name,student[i].year,student[i].month,student[i].math,student[i].English,student[i].C,student[i].average);
    }
    return 0;
}
